Skip to content

Conversation

@jandubois
Copy link
Member

Right now we just show a warning and skip validation. That means we won't alert the user to any errors in the generic parts of the template, which seems contrary to the purpose of a validation command.

For testing I removed the images: from the experimental/wsl2.yaml:

l tmpl validate templates/experimental/wsl2.yaml
WARN[0000] failed to resolve VM type for "/Users/jan/.lima/wsl2.yaml": vmType "wsl2" is not a registered driver

After this commit we will catch it:

l tmpl validate templates/experimental/wsl2.yaml
WARN[0000] failed to resolve VM type for "/Users/jan/.lima/wsl2.yaml": vmType "wsl2" is not a registered driver
FATA[0000] failed to validate YAML file "templates/experimental/wsl2.yaml": field `images` must be set

Right now we just show a warning and skip validation. That means
we won't alert the user to any errors in the generic parts of the
template, which seems contrary to the purpose of a validation command.

Signed-off-by: Jan Dubois <jan.dubois@suse.com>
@jandubois jandubois added this to the v2.0.2 milestone Nov 22, 2025
Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@AkihiroSuda AkihiroSuda merged commit 09c6b86 into lima-vm:master Nov 23, 2025
37 checks passed
@jandubois jandubois deleted the validate-without-driver branch November 24, 2025 07:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants